<?php
header("Content-type:text/html;charset=utf-8");
include "index.php";
$artid=intval($_GET['artid']);
$sql=mysql_query("select * from artical where id=$artid");
$c=mysql_fetch_assoc($sql);
?>
<div style="width: 100%">
    <style>
        h2{margin: 10px; padding:10px 0px 0px 0px}
        p{margin: 0 ;padding: 0;text-align: center;font-size: 14px}
    </style>
<div class="wen" style="background: #fff;width: 1000px;line-height: 30px;margin: 0 auto;">
    <div style="height:100px;">
        <h2 style=" text-align: center"><?php echo $c['title'] ?></h2>
        <p>时间：<?php echo $c['addtime'] ?>&nbsp; 来源：未知 &nbsp;作者：<?php echo $c['author'] ?>&nbsp; 阅读：次</p>
    </div>
    <div style="text-indent: 2em">
        <?php
        echo $c['content'];
        ?>
    </div>
</div>

</div>